/*
 * ItemRoutingValueResource.h
 *
 *  Created on: 2014. 3. 4.
 *      Author: mega
 */

#ifndef ITEMROUTINGVALUERESOURCE_H_
#define ITEMROUTINGVALUERESOURCE_H_


#include <map>

namespace ProjectZ { namespace NResource {

class ItemRoutingValueResource
{
public:
	struct Flyweight
	{
		int _IDX;
		int _QUALITY1;
		int _QUALITY2;
		int _QUALITY3;
		int _QUALITY4;
		int _QUALITY5;
		int _QUALITY6;
		int _QUALITY7;
		int _QUALITY8;
		int _QUALITY9;
		int _QUALITY10;
		int _EFFECT_MIN;
		int _EFFECT_MAX;
	};

public:
	ItemRoutingValueResource();
	virtual ~ItemRoutingValueResource();

	bool		LoadResource();
	Flyweight *	GetFly(int idx);

private:
	void		Clear();

public:
	typedef std::map<int, Flyweight *> ITEMROUTINGVALUETREE;

private:
	ITEMROUTINGVALUETREE clsFlyTree;

};

} /*NResource*/ } /*ProjectZ*/


#endif /* ITEMROUTINGVALUERESOURCE_H_ */
